package com.likejian.rabbit.simple;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import com.likejian.rabbit.RabbitConfig;
import com.likejian.rabbit.entity.User;

@Component
@RabbitListener(queues = RabbitConfig.SPRINGBOOT_RABBIT_USER_QUEUE)
public class UserReceiver {

	@RabbitHandler
	public void porcess(User user){
		System.out.println("UserReceiver=" + user);
	}
}
